const { createStore } = require("redux")
const reducer = require("./reducer.js")

// 创建store（ 传入的reducer函数会自动执行）
const store = createStore(reducer)

// 导出
module.exports = store